#include<stdio.h>
#include<assert.h>
char* exchange(char* arr1, char* arr2)
{
	char* ret = arr1;
	assert(arr1!=NULL);
	assert(arr2!=NULL);
	while (*arr1)
	{
		arr1++;
	}
	while ((*arr1++ = *arr2++))
	{
		;
	}
	return ret;
}
int main()
{
	char arr1[20] ;
	char arr2[20];
	gets(arr1);
	gets(arr2);
	char*ret=exchange(arr1, arr2);
	printf("%s", ret);

	return 0;
}